﻿using Model.BusinessModel.OutPut.sys;
using Model.DomainModel.Sys;

namespace Infrastructure.IRepository.Sys
{
    /// <summary>
    /// 按钮样式仓储接口
    /// </summary>
    public interface ISysButtonStyleRepository : IRepository<SysButtonStyle>
    {
        /// <summary>
        /// 根据按钮样式名称，查询数据
        /// </summary>
        /// <param name="buttonStyleName">按钮样式名称</param>
        /// <returns></returns>
        SysButtonStyle? GetSysButtonStyleByName(string buttonStyleName);

        /// <summary>
        /// 获取按钮样式数据
        /// </summary>
        /// <param name="authWhere">授权条件</param>
        /// <returns>返回按钮样式数据</returns>
        List<SysButtonStyleOutPut> GetButtonStyleList(string authWhere);

        /// <summary>
        /// 获取按钮样式使用次数
        /// </summary>
        /// <param name="buttonStyleId"></param>
        /// <returns></returns>
        int GetButtonStyleCount(string buttonStyleId);
    }
}
